:root,
[data-bs-theme="light"] {
    --bs-border-radius: 0.2rem;
    --bs-border-radius-sm: 0.1rem;
    --bs-border-radius-lg: 0.3rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
}

/* Search container styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Initially hide the input */
.search-input {
    width: 0;
    opacity: 0;
    border: none;
    outline: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    margin-right: 10px;
    /* Add space between input and button */
}

/* Input when active */
.search-input.active {
    width: 200px;
    opacity: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Search button */
.search-btn {
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input.active {
        width: 150px;
    }
}

/*
*  Mega menu CSS
*/

.menu-large {
    position: static !important;
}

.megamenu {
    padding: 20px 20px;
    width: 100%;
    margin-top: -20px;
}

.megamenu > div > li > ul {
    padding: 0;
    margin: 0;
}

.megamenu > div > li > ul > li {
    list-style: none;
}

li {
    list-style: none;
}
.megamenu > div > li > ul > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.428571429;
    color: #333333;
    white-space: normal;
}

.megamenu.dropdown-header {
    color: #428bca;
    font-size: 24px;
}

@media (max-width: 768px) {
    .megamenu {
        margin-left: 0;
        margin-right: 0;
    }

    .megamenu > li {
        margin-bottom: 30px;
    }

    .megamenu > li:last-child {
        margin-bottom: 0;
    }

    .megamenu.dropdown-header {
        padding: 3px 15px !important;
    }

    .navbar-nav .open .dropdown-menu .dropdown-header {
        color: #fff;
    }
}

.cat-img img {
    width: 100%; /* Make the image width fill the container */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image fits the dimensions without stretching */
    display: block; /* Remove inline gaps if any */
}

@media (max-width: 768px) {
    .cat-img img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .cat-img img {
        height: 100px;
    }
}

.prg-img img {
    width: 100%; /* Make the image width fill the container */
    height: 300px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image fits the dimensions without stretching */
    display: block; /* Remove inline gaps if any */
}

@media (max-width: 768px) {
    .prg-img img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .prg-img img {
        height: 100px;
    }
}

.vendor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px; /* Rounded corners for container */
    padding: 10px;
    overflow: hidden; /* Ensure no content overflows the rounded corners */
    height: 150px; /* Set a fixed height for the container */
    width: 150px; /* Set a fixed width for the container */
}

.brand-logo {
    width: 100%; /* Make image fill the container */
    height: 100%; /* Make image fill the container */
    object-fit: contain; /* Maintain aspect ratio and prevent stretching */
    border-radius: 50%; /* Round the image */
}

.price-conteiner {
    cursor: default;
    --color-primary: #275efe;
    --color-headline: #3f4656;
    --color-text: #99a3ba;
}

.input-ranges[type="range"] {
    width: 210px;
    height: 30px;
    overflow: hidden;
    outline: none;
}

.input-ranges[type="range"],
.input-ranges[type="range"]::-webkit-slider-runnable-track,
.input-ranges[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: none;
}

.input-ranges[type="range"]::-webkit-slider-runnable-track {
    width: 200px;
    height: 1px;
    background: var(--color-headline);
}

.input-ranges[type="range"]:nth-child(2)::-webkit-slider-runnable-track {
    background: none;
}

.input-ranges[type="range"]::-webkit-slider-thumb {
    position: relative;
    height: 15px;
    width: 15px;
    margin-top: -7px;
    background: #fff;
    border: 1px solid var(--color-headline);
    border-radius: 25px;
    cursor: pointer;
    z-index: 1;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.input-ranges[type="range"]::-webkit-slider-thumb:hover {
    background: #eaefff;
    border: 1px solid var(--color-primary);
    outline: 0.5px solid var(--color-primary);
}

.input-ranges[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.input-ranges[type="range"]:nth-child(1)::-webkit-slider-thumb {
    z-index: 2;
}

.rangeslider {
    font-family: sans-serif;
    font-size: 14px;
    position: relative;
    height: 20px;
    width: 210px;
    display: inline-block;
    margin-top: -5px;
}

.rangeslider input {
    position: absolute;
}

.rangeslider span {
    position: absolute;
    margin-top: 20px;
    left: 0;
}

.rangeslider .right {
    position: relative;
    float: right;
    margin-right: -5px;
}

.category-tree {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.category-tree li {
    margin-left: 2px;
}

.category-tree ul {
    margin-left: 5px;
}

.custom-control-label {
    display: inline-block;
    margin-left: 5px;
}
.global_search_container {
    position: relative;
    width: 300px; /* Adjust width as needed */
}

#search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#suggestion-box {
    position: absolute;
    top: 40px; /* Adjust position from input field */
    left: 0;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    display: none;
    z-index: 1000;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.badge {
    --bs-badge-padding-x: 0.45em;
    --bs-badge-padding-y: 0.3em;
    --bs-badge-font-size: 80%;
    --bs-badge-font-weight: 600;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    border-radius: var(--bs-badge-border-radius);
    color: var(--bs-badge-color);
    display: inline-block;
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}
.badge:empty {
    display: none;
}
.btn .badge {
    position: relative;
    top: -1px;
}
.badge,
a.badge {
    color: #fff;
}
.badge.bg-light,
a.badge.bg-light {
    color: #212529;
}
.badge-primary-light,
a.badge-primary-light {
    background-color: rgba(59, 125, 221, 0.15);
    color: color-yiq(rgba(59, 125, 221, 0.15));
    color: #3b7ddd;
}
.badge-primary-light:focus,
.badge-primary-light:hover,
aa.badge-primary-light:focus,
aa.badge-primary-light:hover {
    background-color: rgba(34, 100, 195, 0.15);
    color: color-yiq(rgba(59, 125, 221, 0.15));
}
.badge-primary-light.focus,
.badge-primary-light:focus,
aa.badge-primary-light.focus,
aa.badge-primary-light:focus {
    box-shadow: 0 0 0 1px rgba(59, 125, 221, 0.5);
    outline: 0;
}
.badge-secondary-light,
a.badge-secondary-light {
    background-color: hsla(208, 7%, 46%, 0.15);
    color: color-yiq(hsla(208, 7%, 46%, 0.15));
    color: #6c757d;
}
.badge-secondary-light:focus,
.badge-secondary-light:hover,
aa.badge-secondary-light:focus,
aa.badge-secondary-light:hover {
    background-color: rgba(84, 91, 98, 0.15);
    color: color-yiq(hsla(208, 7%, 46%, 0.15));
}
.badge-secondary-light.focus,
.badge-secondary-light:focus,
aa.badge-secondary-light.focus,
aa.badge-secondary-light:focus {
    box-shadow: 0 0 0 1px hsla(208, 7%, 46%, 0.5);
    outline: 0;
}
.badge-success-light,
a.badge-success-light {
    background-color: rgba(28, 187, 140, 0.15);
    color: color-yiq(rgba(28, 187, 140, 0.15));
    color: #1cbb8c;
}
.badge-success-light:focus,
.badge-success-light:hover,
aa.badge-success-light:focus,
aa.badge-success-light:hover {
    background-color: rgba(21, 143, 107, 0.15);
    color: color-yiq(rgba(28, 187, 140, 0.15));
}
.badge-success-light.focus,
.badge-success-light:focus,
aa.badge-success-light.focus,
aa.badge-success-light:focus {
    box-shadow: 0 0 0 1px rgba(28, 187, 140, 0.5);
    outline: 0;
}
.badge-info-light,
a.badge-info-light {
    background-color: rgba(23, 162, 184, 0.15);
    color: color-yiq(rgba(23, 162, 184, 0.15));
    color: #17a2b8;
}
.badge-info-light:focus,
.badge-info-light:hover,
aa.badge-info-light:focus,
aa.badge-info-light:hover {
    background-color: rgba(17, 122, 139, 0.15);
    color: color-yiq(rgba(23, 162, 184, 0.15));
}
.badge-info-light.focus,
.badge-info-light:focus,
aa.badge-info-light.focus,
aa.badge-info-light:focus {
    box-shadow: 0 0 0 1px rgba(23, 162, 184, 0.5);
    outline: 0;
}
.badge-warning-light,
a.badge-warning-light {
    background-color: rgba(252, 185, 44, 0.15);
    color: color-yiq(rgba(252, 185, 44, 0.15));
    color: #fcb92c;
}
.badge-warning-light:focus,
.badge-warning-light:hover,
aa.badge-warning-light:focus,
aa.badge-warning-light:hover {
    background-color: rgba(242, 165, 3, 0.15);
    color: color-yiq(rgba(252, 185, 44, 0.15));
}
.badge-warning-light.focus,
.badge-warning-light:focus,
aa.badge-warning-light.focus,
aa.badge-warning-light:focus {
    box-shadow: 0 0 0 1px rgba(252, 185, 44, 0.5);
    outline: 0;
}
.badge-danger-light,
a.badge-danger-light {
    background-color: rgba(220, 53, 69, 0.15);
    color: color-yiq(rgba(220, 53, 69, 0.15));
    color: #dc3545;
}
.badge-danger-light:focus,
.badge-danger-light:hover,
aa.badge-danger-light:focus,
aa.badge-danger-light:hover {
    background-color: rgba(189, 33, 48, 0.15);
    color: color-yiq(rgba(220, 53, 69, 0.15));
}
.badge-danger-light.focus,
.badge-danger-light:focus,
aa.badge-danger-light.focus,
aa.badge-danger-light:focus {
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.5);
    outline: 0;
}
.badge-light-light,
a.badge-light-light {
    background-color: rgba(245, 247, 251, 0.15);
    color: color-yiq(rgba(245, 247, 251, 0.15));
    color: #f5f7fb;
}
.badge-light-light:focus,
.badge-light-light:hover,
aa.badge-light-light:focus,
aa.badge-light-light:hover {
    background-color: rgba(209, 218, 236, 0.15);
    color: color-yiq(rgba(245, 247, 251, 0.15));
}
.badge-light-light.focus,
.badge-light-light:focus,
aa.badge-light-light.focus,
aa.badge-light-light:focus {
    box-shadow: 0 0 0 1px rgba(245, 247, 251, 0.5);
    outline: 0;
}
.badge-dark-light,
a.badge-dark-light {
    background-color: rgba(33, 37, 41, 0.15);
    color: color-yiq(rgba(33, 37, 41, 0.15));
    color: #212529;
}
.badge-dark-light:focus,
.badge-dark-light:hover,
aa.badge-dark-light:focus,
aa.badge-dark-light:hover {
    background-color: rgba(10, 12, 13, 0.15);
    color: color-yiq(rgba(33, 37, 41, 0.15));
}
.badge-dark-light.focus,
.badge-dark-light:focus,
aa.badge-dark-light.focus,
aa.badge-dark-light:focus {
    box-shadow: 0 0 0 1px rgba(33, 37, 41, 0.5);
    outline: 0;
}
